﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ZR.Model.mes.pro
{
    /// <summary>
    /// 生产计划
    ///</summary>
    [SugarTable("pro_workplan")]
    public class ProWorkplan
    {
        /// <summary>
        /// 流水号 
        ///</summary>
        [SugarColumn(ColumnName = "id", IsPrimaryKey = true)]
        public string Id { get; set; }
        /// <summary>
        /// 年 
        ///</summary>
        [SugarColumn(ColumnName = "year")]
        public int? Year { get; set; }
        /// <summary>
        /// 周 
        ///</summary>
        [SugarColumn(ColumnName = "week")]
        public int? Week { get; set; }
        /// <summary>
        /// 来源 
        ///</summary>
        [SugarColumn(ColumnName = "source")]
        public int? Source { get; set; }
        /// <summary>
        /// 零件号 
        ///</summary>
        [SugarColumn(ColumnName = "partnumber")]
        public string Partnumber { get; set; }
        /// <summary>
        /// 版本 
        ///</summary>
        [SugarColumn(ColumnName = "version")]
        public string Version { get; set; }
        /// <summary>
        /// 颜色 
        ///</summary>
        [SugarColumn(ColumnName = "color")]
        public string Color { get; set; }
        /// <summary>
        /// 颜色代码 
        ///</summary>
        [SugarColumn(ColumnName = "colorcode")]
        public string Colorcode { get; set; }
        /// <summary>
        /// 本周要货数量 
        ///</summary>
        [SugarColumn(ColumnName = "neednumber")]
        public string Neednumber { get; set; }
        /// <summary>
        /// 产品合格率 
        ///</summary>
        [SugarColumn(ColumnName = "passpercent")]
        public string Passpercent { get; set; }
        /// <summary>
        /// 每挂数量 
        ///</summary>
        [SugarColumn(ColumnName = "batchNumber")]
        public int? BatchNumber { get; set; }
        /// <summary>
        /// 生产节拍 
        ///</summary>
        [SugarColumn(ColumnName = "productionRhythm")]
        public decimal? ProductionRhythm { get; set; }
        /// <summary>
        /// 总挂具数 
        ///</summary>
        [SugarColumn(ColumnName = "hangerNumber")]
        public int? HangerNumber { get; set; }
        /// <summary>
        /// 订单需生产挂具数量 
        ///</summary>
        [SugarColumn(ColumnName = "needhangerNumber")]
        public string NeedhangerNumber { get; set; }
        /// <summary>
        /// 实际计划数量 
        ///</summary>
        [SugarColumn(ColumnName = "actualplanNumber")]
        public string ActualplanNumber { get; set; }
        /// <summary>
        /// 车数 
        ///</summary>
        [SugarColumn(ColumnName = "carNumber")]
        public string CarNumber { get; set; }
        /// <summary>
        /// 圈数 
        ///</summary>
        [SugarColumn(ColumnName = "circleNumber")]
        public string CircleNumber { get; set; }
        /// <summary>
        /// 订单生产时间(分钟) 
        ///</summary>
        [SugarColumn(ColumnName = "producttime")]
        public int? Producttime { get; set; }
        /// <summary>
        /// 计划需求定性 
        ///</summary>
        [SugarColumn(ColumnName = "needcertainty")]
        public string Needcertainty { get; set; }
        /// <summary>
        /// 备注 
        ///</summary>
        [SugarColumn(ColumnName = "remark")]
        public string Remark { get; set; }
        /// <summary>
        /// 租户号 
        ///</summary>
        [SugarColumn(ColumnName = "TENANT_ID")]
        public string TenantId { get; set; }
        /// <summary>
        /// 乐观锁 
        ///</summary>
        [SugarColumn(ColumnName = "REVISION")]
        public int? Revision { get; set; }
        /// <summary>
        /// 创建人 
        ///</summary>
        [SugarColumn(ColumnName = "CREATED_BY")]
        public string CreatedBy { get; set; }
        /// <summary>
        /// 创建时间 
        ///</summary>
        [SugarColumn(ColumnName = "CREATED_TIME")]
        public DateTime? CreatedTime { get; set; }
        /// <summary>
        /// 更新人 
        ///</summary>
        [SugarColumn(ColumnName = "UPDATED_BY")]
        public string UpdatedBy { get; set; }
        /// <summary>
        /// 更新时间 
        ///</summary>
        [SugarColumn(ColumnName = "UPDATED_TIME")]
        public DateTime? UpdatedTime { get; set; }
    }
}
